<?php 
/**********************************************************
  eCode Marketing System
  Version 0.1
  Logout Handler (/admin/handler.logout.php)
**********************************************************/

// Start session if not already started
session_start();

// Executed only if the user is logged in:
if(isset($_SESSION['login_t'])) {
	// Unset all session variables, destroy session
	session_unset();
	session_destroy();
}

// Redirect to the login form
header("Location: /admin/login.php");
?>